This file contains the code to replicate the simulations in "Resource Extraction Contracts under Threat of Expropriation: Theory and Evidence" 
by Johannes Stroebel and Arthur van Benthem. 

The code is written in Matlab.

It contains the following files:

alphagamma.m
alphastar.m
Draw_Graph_1.m
fminsearchbnd.m
optparam.m
Ve_h.m
Ve_l.m
VhInt.m

The file fminsearchbnd.m is an optimization routine that expands on the Matlab native function fminsearch, and was written by John D'Errico, and 
shared through MathsWorks. 

To replicate the code, run Draw_Graph_1. This file will call upon the other functions. The code is commented to allow the interested reader to 
follow the invididual steps of the simulation.